package cn.credit.loan.dao.grant;

import org.apache.ibatis.annotations.Param;
import cn.credit.loan.entity.Grant;

/**
 * 发放专员类Dao层---Mapper接口
 * @author LI
 *
 */
public interface GrantMapper {
	
	/**
	 * 发放专员登录
	 * @param grantName
	 * @param grantPwd
	 * @return
	 */
	public Grant grantlogin(@Param("grantName")String grantName,
							@Param("grantPwd")String grantPwd);
	
	
	/**
	 * 添加发放专员
	 * @param manager
	 * @return
	 */
	public int grantadd(Grant grant);
	
	/**
	 * 修改发放专员
	 * @param manager
	 * @return 
	 */
	public int grantupdate(Grant grant);
	
	/**
	 * 删除发放专员
	 * @param manager
	 * @return
	 */
	public boolean grantdelete(@Param("grantId") int grantId) throws Exception;
	
}
